package org.lex.dbq.model.bo;

import java.util.Comparator;

public class BoUtils {
	public static Comparator<CommonObject> getNameComparator() {
		return NameComparator;
	}

	private static final NameComparator NameComparator = new NameComparator();

	private static final class NameComparator implements Comparator<CommonObject> {
		@Override
		public int compare(CommonObject o1, CommonObject o2) {
			return o1.name.compareTo(o2.name);
		}
	}
}
